# -*- coding: utf-8 -*- 
"""
========================================================================================================================
@project : my-sanic
@file: urls
@Author: mengying
@email: 652044581@qq.com
@date: 2023/3/21 14:47
@desc: 
========================================================================================================================
"""
from sanic import Blueprint
from api.demo import views

# 注册蓝图
SpiderBlueprint = Blueprint('spider', url_prefix='/spider')

urlpatterns = [
    SpiderBlueprint.add_route(views.GetContentView.as_view(), "/get_content", name="提交爬虫任务"),
    SpiderBlueprint.add_route(views.QueryResultView.as_view(), "/query_result", name="获取爬虫结果"),
]